# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-wheel
_pkgname=wheel
pkgver=0.37.0
pkgrel=5
pkgdesc='A built-package format for Python.'
url='https://pypi.org/project/wheel/#files'
arch=('any')
license=('MIT')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('3e0eda4284787ae00155d48a0ba13e62131143dbe53a982b783235c3ad62a203e9527c6c812361a39cad6b5e4527e85f2255ff7c9b94c476304c8c0d776887ea')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  mv "$pkgdir/usr/bin/wheel" "$pkgdir/usr/bin/wheel2"
}

